package morefun.demo.utils

class SecondSortKey(val first:Int, val second:Int)
      extends Ordered[SecondSortKey] with Serializable{
  override def compare(that: SecondSortKey): Int = {
    if (this.first - that.first != 0) {
      return this.first - that.first
    }else {
      return this.second - that.second
    }
  }
}
